﻿var product = {
    load: function () {
        $(".grid").control({ action: '/Ajax/Project/Project.aspx?Action=List', search: '',
            callback: function (result) {
                if (result && typeof (result) == 'object') {
                    return result.Body;
                }

                return null;
            }
        });
    }
}

$(function () {
    product.load();
});

$.relActionHandle.onAjaxAction_createProject = function (result) {
    closeLayer();
    jQuery.facebox.close();
    product.load();
}
$.relActionHandle.onAjaxAction_deleteProject = function (result) {
    product.load();
    return false;
}